package com.hk.handler.exception;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @Author: aerfazhe
 * @Date: 2021/7/14 9:42
 * @Statement: 异常对象
 */
@AllArgsConstructor
@NoArgsConstructor
@Data
public class ExceptionResult {

    private int status;
    private String msg;
    private Long timemillis;

    public ExceptionResult(ExceptionEnum em) {
        this.status=em.getCode();
        this.msg=em.getMessage();
        this.timemillis=System.currentTimeMillis();
    }

}
